package chapter6;

import java.util.Scanner;

/****************************************************************
 * Author：icynlau
 * Description: 显示0 1矩阵
 * Date:2021/4/4
 * ***************************************************************
 */
public class exc6_17 {
	
	public static void printMatrix(int n) {
		
		for(int i=0;i<n;i++) {
			System.out.print("\t");
			for(int j=0;j<n;j++) {
				
				int tmp=(int)(Math.random()*2);
				System.out.printf("%d  ",tmp);
				
			}
			System.out.print("\n");
			
		}
	}
		
		public static void main(String[]  args) {
			
			Scanner input=new Scanner(System.in);
			
			System.out.print("Enter the n:  ");
			
			int n=input.nextInt();
			
			printMatrix(n);
			
		}
		
	
	

}
